home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8555 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.blkbox.COM!usenet
  2. From: barnowl@blkbox.com (Ken Williams)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: OpenVMS system service routines
  5. Date: Tue, 05 Mar 1996 02:28:15 GMT
  6. Organization: The Black Box, Houston, Tx (713) 480-2686 
  7. Message-ID: <313ba5aa.7218271@news.blkbox.com>
  8. References: <4h2jji$8mp@fish.pond.com>
  9. NNTP-Posting-Host: s54.max0.houston.box.net
  10. X-Newsreader: Forte Agent .99d/32.182
  11.  
  12. On 28 Feb 1996 22:05:38 GMT, kannag@rpr.rpna.com wrote:
  13.  
  14. >I'm trying to access the authorization file (UAF.DAT) to check  the encrypted password and
  15. >other user specific information.  I'm using the SYS$HASH_PASSWORD and SYS$GETUAI
  16. >routines.  They seem to be working - the return status from my calls is a 1.  However, the
  17. >length that is returned is always some huge number, and the encryped password I get back from
  18. >the GETUAI routine does not match the one returned from HASH_PASSWORD (i've made
  19. >sure to use the right SALT and ALGORITHM parameters).  
  20. >
  21. >I think my problems stem from the data structure being passed to the routines.  The encryped
  22. >password routine excepts a quadword (8 bytes).  I've tried using double, long int,  char,
  23. >and a struct of two ints -   all to no avail.
  24. >
  25. >Any comments from VAX System Gurus......
  26. >
  27. >Thanx in advance,
  28. >Ganesh.
  29. >
  30. I'm not exactly a VAX system guru but,  I have been working on VMS for
  31. about 14 years.  Have you thoroughly read the section of the C manual
  32. on calling other languages?  It explains how to set up data structures
  33. for the more standard (for VMS not C) structures.  You might also look
  34. in the chapters in the System Services reference manuals on calling
  35. system services.  I'd be more specific but,  I'm not at work and I
  36. don't have access to my documentation.
  37.  
  38.  
  39. Ken Williams
  40. barnowl@blkbox.com
  41. PGP Key Available On Request
  42.